/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.sql.Types;
import oracle.jdbc.OracleTypes;



/**
 *
 * @author thanhct
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface Mapping {

    int[] index() default {0};

    FunctionName[] procedureNames() default {FunctionName.DEFAULT};

    FunctionName procedureName() default FunctionName.DEFAULT;

    enum Type {

        INT,
        STRING,
        FLOAT,
        DOUBLE,
        BIGDECIMAL,
        DATE,
        NCLOB
    }

    String name() default "";

    Type type() default Type.INT;

    int typeMapping() default 9000;

    int oracleType() default 9000;
}
